package com.wnhoo.smartfishtank.api.data;

/**
 * Created by ThinkPadE431 on 2015/4/27.
 */
public class DataUSBDevice {

    private String id;
    private int type;
    private String name;
    private String des;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DataUSBDevice that = (DataUSBDevice) o;

        if (type != that.type) return false;
        if (!id.equals(that.id)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id.hashCode();
        result = 31 * result + type;
        return result;
    }

    @Override
    public String toString() {
        return "DataUSBDevice{" +
                "id='" + id + '\'' +
                ", type=" + type +
                ", name='" + name + '\'' +
                ", des='" + des + '\'' +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }
}
